﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;
using System.Configuration;
using System.Data.Common;


namespace WSData_RENIEC.Persistencia
{
    public class Util
    {

        public static string GetConexion
        {
            get
            {
                return ConfigurationManager.ConnectionStrings["conRENIEC"].ConnectionString;
            }
        }

        public static string Provider
        {
            get
            {
                return ConfigurationManager.ConnectionStrings["conRENIEC"].ProviderName;
            }
        }

        public static System.Data.Common.DbProviderFactory dpf
        {
            get
            {
                return DbProviderFactories.GetFactory(Provider);
            }
        }

    }
}